package org.nimi317.web_gis.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nimi317.web_gis.Enum.JobEnum;

import java.time.LocalDateTime;

/**
 * @author thunderobot
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Job {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String bean;

    private String cron;

    private String method;

    private JobEnum status;

    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
